home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 22 / Cream of the Crop 22.iso / windows / wdj1096.zip / OTALA.ZIP / SAMPDLL.CPP < prev    next >
C/C++ Source or Header  |  1996-06-29  |  483b  |  26 lines

  1. #include <windows.h>
  2. #include "ewv.h"
  3.  
  4. HINSTANCE g_hInstance;
  5.  
  6. int CALLBACK LibMain(HINSTANCE hInst, WORD /*wDataSeg*/,
  7.   WORD /*cbHeap*/, LPSTR /*pszCmdLine*/)
  8. {
  9.     g_hInstance = hInst;
  10.     if (IsWin95())
  11.         SetModuleExpWinVer(g_hInstance, 0x0400);
  12.  
  13.     // do something else...
  14.     return (1);
  15. }
  16.  
  17. int CALLBACK WEP(int /*fExitType*/)
  18. {
  19.     // do something else...
  20.  
  21.     if (IsWin95())
  22.         SetModuleExpWinVer(g_hInstance, 0x030a);
  23.     return (1);
  24. }
  25.  
  26.